//引入mongoose
let { Schema, model } = require("mongoose");
//创建一个数据库,创建集合(类型)
let classesSchema = new Schema(
	{
		name: String,

		delete: {
			type: Boolean,
			default: false,
		},
	},
	{
		versionKey: false,
	}
);
//创建模型用于调用方法,暴露给第三层

module.exports.classesModel = model("classesModel", classesSchema, "classes");
